{% extends 'base.html' %}

{% block title %}
  登录
{% endblock %}

{% block head %}
  <link rel="stylesheet" href="{% static 'css/auth.css' %}">
{% endblock %}

{% block main %}
  <div class="auth-container">
    <div class="auth-card">
      <div class="auth-header">
        <h2>欢迎回到 TechSphere</h2>
        <p>请登录您的账号继续探索技术世界</p>
      </div>

      <form action="" method="POST" class="auth-form">
        {% csrf_token %}
        <div class="form-group">
          <label for="login-email">电子邮箱</label>
          <div class="input-with-icon">
            <i class="fas fa-envelope"></i>
            <input type="email" name="email" placeholder="your@email.com" required>
          </div>
        </div>

        <div class="form-group">
          <label for="login-password">密码</label>
          <div class="input-with-icon">
            <i class="fas fa-lock"></i>
            <input type="password" name="password" placeholder="输入您的密码" required>
          </div>
        </div>

        <div class="remember-forgot">
          <div class="remember-me">
            <input type="checkbox" name="remember" value="1">
            <label for="remember">记住我</label>
          </div>
        </div>

        <button type="submit" class="btn btn-primary" style="width: 500px">登录账号</button>

        <div class="auth-footer">
          还没有账号? <a href="{% url 'myauth:register' %}">立即注册新账号</a>
        </div>
      </form>
    </div>
  </div>
{% endblock %}